<?php
//创建一个cURL资源
$ch=curl_init();
//设置你要请求的url
curl_setopt($ch,CURLOPT_URL,'https://www.baidu.com/');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
$dom=curl_exec($ch);
curl_close($ch);
echo $dom;